<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css"></style>
</head>
<body>
    <h1>JS内置对象 -- Boolean</h1>
    <hr>

    <script>
        // 直接赋值
        var b = true;
        var b = false;

        // 构造函数
        var b = new Boolean();
        var b = new Boolean(-10);

        // 转换函数
        var b = Boolean(0);
        var b = Boolean('');
        var b = Boolean(null);
        var b = Boolean(undefined);
        var b = Boolean([]);
        var b = Boolean({});


        console.log(b);
        console.log(typeof(b));
        console.log(b.constructor);


    </script>
</body>
</html>